home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / crcset11.zip / TESTCRC.C < prev    next >
C/C++ Source or Header  |  1990-11-16  |  619b  |  35 lines

  1. /*
  2. TESTCRC.C
  3.  
  4. Kevin Dean
  5. Fairview Mall P.O. Box 55074
  6. 1800 Sheppard Avenue East
  7. Willowdale, Ontario
  8. CANADA    M2J 5B9
  9. CompuServe ID: 76336,3114
  10.  
  11. November 16, 1990
  12.  
  13.     This program demonstrates the anti-virus CRC algorithm in VALIDCRC.C.
  14. The response to an invalid CRC is entirely up to the programmer.
  15.  
  16.     This code is public domain.
  17. */
  18.  
  19.  
  20. #include <stdio.h>
  21.  
  22. #include "viruscrc.h"
  23.  
  24.  
  25. /***/
  26. main(void)
  27. {
  28. if (isvalidcrc("TESTCRC.EXE"))
  29.   puts("CRC is valid.");
  30. else
  31.   puts("*** WARNING *** Program's CRC is invalid.\n"
  32.        "This program may have been infected by a virus.");
  33.  
  34. return (0);
  35. }